﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Core.JwtHelper
{
    /// <summary>
    /// 标记此特性代表需要jwt鉴权验证
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
    public class JwtVerificationAttribute:Attribute
    {
        public bool NeedValidate;
        /// <summary>
        /// 需要鉴权才能访问
        /// </summary>
        /// <param name="NeedValidate"></param>
        public JwtVerificationAttribute(bool NeedValidate = true)
        {
            this.NeedValidate = NeedValidate;
        }
    }
}
